package com.ruoyi.stuinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stuinfo.mapper.ClassperMapper;
import com.ruoyi.stuinfo.domain.Classper;
import com.ruoyi.stuinfo.service.IClassperService;

/**
 * 课堂记录Service业务层处理
 *
 * @author zc
 * @date 2025-05-16
 */
@Service
public class ClassperServiceImpl implements IClassperService
{
    @Autowired
    private ClassperMapper classperMapper;

    /**
     * 查询课堂记录
     *
     * @param performanceId 课堂记录主键
     * @return 课堂记录
     */
    @Override
    public Classper selectClassperByPerformanceId(Long performanceId)
    {
        return classperMapper.selectClassperByPerformanceId(performanceId);
    }

    /**
     * 查询课堂记录列表
     *
     * @param classper 课堂记录
     * @return 课堂记录
     */
    @Override
    public List<Classper> selectClassperList(Classper classper)
    {
        return classperMapper.selectClassperList(classper);
    }

    /**
     * 新增课堂记录
     *
     * @param classper 课堂记录
     * @return 结果
     */
    @Override
    public int insertClassper(Classper classper)
    {
        return classperMapper.insertClassper(classper);
    }

    /**
     * 修改课堂记录
     *
     * @param classper 课堂记录
     * @return 结果
     */
    @Override
    public int updateClassper(Classper classper)
    {
        return classperMapper.updateClassper(classper);
    }

    /**
     * 批量删除课堂记录
     *
     * @param performanceIds 需要删除的课堂记录主键
     * @return 结果
     */
    @Override
    public int deleteClassperByPerformanceIds(Long[] performanceIds)
    {
        return classperMapper.deleteClassperByPerformanceIds(performanceIds);
    }

    /**
     * 删除课堂记录信息
     *
     * @param performanceId 课堂记录主键
     * @return 结果
     */
    @Override
    public int deleteClassperByPerformanceId(Long performanceId)
    {
        return classperMapper.deleteClassperByPerformanceId(performanceId);
    }

    @Override
    public List<Classper> selectClassperList_handteacher(String teacherId) {
        return classperMapper.selectClassperList_handteacher(teacherId);
    }

    @Override
    public List<Classper> selectClassperList_teacher(String teacherId) {
        return classperMapper.selectClassperList_teacher(teacherId);
    }
}
